package com.atguigu.ssyx.product.service;

import com.atguigu.ssyx.common.result.Result;
import org.springframework.web.multipart.MultipartFile;

/**
 * @描述:文件上传
 * @作者:胡树苑
 * @时间:2025/9/13 19:40
 */

public interface FileUploadService {


    String uploadFile(MultipartFile file) throws Exception;
    //上传文件到指定文件夹
    String uploadFile(MultipartFile file, String folder) throws Exception;
    //获取url
    String getUrl(String newFileName) throws Exception;
}
